<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "tmall1.spec".
 *
 * @property string $id
 * @property string $name
 * @property string $memo
 * @property string $type
 * @property string $addtime
 */
class Spec extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tmall1.spec';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'memo', 'type'], 'required'],
            [['addtime'], 'integer'],
            [['name', 'memo'], 'string', 'max' => 60],
            [['type'], 'string', 'max' => 5],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'memo' => 'Memo',
            'type' => 'Type',
            'addtime' => 'Addtime',
        ];
    }
}
